<?php
namespace inkstones;
use inkstones\session\Session;
use Exception;
use inkstones\base\Factory;
use inkstones\base\Instance;

class Create{
	
	protected $dir=__DIR__;
	
	public function __construct(){
		$this->autoload();
		$s=new Session();
		$s->test();
	}
	
	private function autoload(){
		spl_autoload_register(function ($class) {
					try{
						
						if (file_exists($this->dir.'/../'.$class.'.php')) {
							include $this->dir.'/../'.$class.'.php';
						}
						else{
								throw new Exception('Class not exists:'.$class);
						}
					}
					catch(Exception $e){
						echo $e->getMessage();
					}
					
		});
	}
	
}

$c=new Create();













?>